package xyz.zq.validation.exception;

import lombok.Data;
import org.springframework.validation.BindingResult;

@Data
public class MyException extends RuntimeException {

    private BindingResult bindingResult;

    public MyException(BindingResult bindingResult) {
        super("参数校验失败");
        this.bindingResult = bindingResult;
    }

}
